import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';

import './antd/dist/antd.css';  // or 'antd/dist/antd.less'

// import App from './App';
import registerServiceWorker from './registerServiceWorker';

import MRoute from './router/index';

import { Provider } from 'react-redux'
import { createStore } from 'redux'
import todoApp from './reducer/reducer'


import * as api from './axios/index'
React.Component.prototype.$api = api;

let store = createStore(todoApp)

console.log(store)

ReactDOM.render(
  <Provider store={store}>
    <MRoute />
  </Provider>
  , 
  document.getElementById('root')
);
registerServiceWorker();
